package com.ysg.enums;

import com.ysg.utils.YStringUtil;

public enum ChatCallEnum {
    AUDIO("2"), VIDEO("3"), CALL("4");

    private String type;
    ChatCallEnum(String type){
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static ChatCallEnum get(String type){
        ChatCallEnum[] values = values();
        for (ChatCallEnum item: values) {
            if (YStringUtil.eq(item.getType(), type)){
                return item;
            }
        }
        return null;
    }
}
